package com.it.plic;

import java.util.concurrent.CountDownLatch;

/**
 * @author げっしょく
 * @date 2021/8/8
 */
public class D2Monther extends Thread{
    private CountDownLatch cdl = new CountDownLatch(3);
    public D2Monther(CountDownLatch cdl) {
        this.cdl = cdl;
    }

    @Override
    public void run() {
        try {
            cdl.await();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("妈妈起身叫孩子刷碗");
    }
}
